import request from '@/utils/request';

export async function getInspectionTemplateByPage (params: any) {
    return request('/api/quality/getInspectionTemplateByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addInspectionTemplate (params: any) {
    return request('/api/quality/addInspectionTemplate', {
    method: 'POST',
    data: params,
  });
}

export async function updateInspectionTemplate (params: any) {
    return request('/api/quality/updateInspectionTemplate', {
    method: 'POST',
    data: params,
  });
}

export async function delInspectionTemplate (params: any) {
    return request('/api/quality/delInspectionTemplate', {
    method: 'POST',
    data: params,
  });
}


export async function exportInspectionTemplate(params: any) {
    return request('/api/quality/exportInspectionTemplate', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getInspectionTemplateByPage, addInspectionTemplate, updateInspectionTemplate, delInspectionTemplate, exportInspectionTemplate }
